package syntaxTree.stm;

import syntaxTree.exp.*;

public class stmIfElse extends stm{
	exp e;
	stm iff;
	stm elsee;
	public stmIfElse(exp e, stm iff, stm elsee)
	{
		this.preS = new stmInit();
		this.e = e;
		this.iff = iff;
		this.elsee = elsee;		
	}
	public stmIfElse(stm s1,exp e, stm iff, stm elsee)
	{
		this.preS = s1;
		this.e = e;
		this.iff = iff;
		this.elsee = elsee;
	}
	public String toString()
	{
		return (preS.toString()+"\nif("+e.toString()+")  "+iff.toString()+"else "+elsee.toString());
	}
	public String toC()
	{
		return (preS.toC()+"\nif("+e.toC()+")  "+iff.toC()+"else "+elsee.toC());
	}
}
